# This file is Copyright 2009 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# A copy of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1
# is seen in the file COPYING up one directory from this.

#
# System Test 234
# Fix list comparisons
#

assert not [] == [1,]
assert not [] == [1,2,3]
assert not [1,] == []
assert not [1,2,3] == []

assert [] != [1,]
assert [] != [1,2,3]
assert [1,] != []
assert [1,2,3] != []

assert [] == []
assert [0,1,2] == [0,1,2]
assert [0,1,2] == [0,1,2][:]
assert [0,1,2] == range(3)
